﻿using Microsoft.EntityFrameworkCore;
using Traceability.App.Domain.Traceability;

namespace Traceability.App.Infrastructrue
{
    public class AppDbContext : DbContext
    {
        public AppDbContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 溯源管理数据集
        /// </summary>
        public DbSet<BasicTraceabilityModel> BasicTraceability { get; set; }
        /// <summary>
        /// 商品信息数据集
        /// </summary>
        public DbSet<GoodModel> Goods { get; set; }
        /// <summary>
        /// 照片信息数据集
        /// </summary>
        public DbSet<ImgInformationModel> ImgInformation { get; set; }
        /// <summary>
        /// 养殖信息数据集
        /// </summary>
        public DbSet<BreedingInformationModel> BreedingInformation { get; set; }
        /// <summary>
        /// 保健信息表
        /// </summary>
        public DbSet<HealthInformationModel> HealthInformation { get; set; }
        /// <summary>
        /// 屠宰信息数据集
        /// </summary>
        public DbSet<SlaughterModel> Slaughter { get; set; }
        /// <summary>
        /// 深加工信息数据集
        /// </summary>
        public DbSet<DeepProcessingModel> DeepProcessing { get; set; }
        /// <summary>
        /// 供应商信息数据集
        /// </summary>
        public DbSet<SupplierModel> Supplier { get; set; }
        /// <summary>
        /// 企业信息数据集
        /// </summary>
        public DbSet<EnterpriseModel> Enterprise { get; set; }
    }
}
